package com.stmt.analytic.graph.algorithm;

import org.slf4j.Logger;

public class TimerWatcher {
    long startTimeMills;
    long endTimeMills;
    Logger logger;

    public TimerWatcher(Logger logger) {
        this.logger = logger;
    }

    public TimerWatcher() {
    }

    public void startClock() {
        startTimeMills = System.currentTimeMillis();
    }

    public void endClock() {
        endTimeMills = System.currentTimeMillis();
    }

    public long timeUsedMills() {
        return endTimeMills - startTimeMills;
    }

    public void report() {
        System.out.printf("Time used %d milliseconds.\n", timeUsedMills());
    }
}
